package com.dayu.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dayu.common.utils.PageUtils;
import com.dayu.gulimall.member.entity.MemberEntity;
import com.dayu.gulimall.member.exception.PhoneExistException;
import com.dayu.gulimall.member.exception.UserNameExistException;
import com.dayu.gulimall.member.vo.MemberLoginVo;
import com.dayu.gulimall.member.vo.RegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author dayu
 * @email dayu@foxmail.com
 * @date 2020-05-07 10:53:15
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(RegistVo vo);

    void checkPhoneUnique(String phone)throws PhoneExistException;

    void checkUsernameUnique(String username) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);
}

